package com.ohs.ohsoa.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ohs.ohsoa.system.dto.DepartmentDto;
import com.ohs.ohsoa.system.entity.Department;
import com.ohs.ohsoa.system.vo.DepartmentVo;
import com.ohs.ohsoa.utils.bean.requestBean.PageParam;

import java.util.List;


/**
 * 部门service
 *
 * @author ss
 *
 */
public interface DepartmentService extends IService<Department> {

    /**获取部门列表信息
     *
     * @param pageParam 部门列表信息
     * @return 部门列表信息
     */
    List<DepartmentVo> departmentSelectList(PageParam<DepartmentDto> pageParam);

    /**根据id获取部门详细信息
     *
     * @param departmentDto 部门id
     * @return 部门列表信息
     */
    DepartmentVo departmentSelect(DepartmentDto departmentDto);

    /**
     *
     * @param departmentDto 部门列表信息
     * @return 插入结果
     */
    Boolean departmentInsert(DepartmentDto departmentDto);

    /**删除部门
     *
     * @param departmentDto 部门列表信息
     * @return 删除结果
     */
    Boolean departmentDelete(DepartmentDto departmentDto);


    /**修改部门信息
     *
     * @param departmentDto 部门列表信息
     * @return 修改结果
     */
    Boolean departmentUpdate(DepartmentDto departmentDto);

    /**
     *
     * @param departmentDto 部门列表信息
     * @return 部门列表信息
     */
    List<Department> departmentSelectListByEnterprise(DepartmentDto departmentDto);
}
